package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcFollow entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_follow", catalog = "mr_plants")
public class UgcFollow implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer receiveUserId;
	private Integer applyUserId;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcFollow() {
	}

	/** full constructor */
	public UgcFollow(Integer receiveUserId, Integer applyUserId,
			Timestamp createTime, String ip) {
		this.receiveUserId = receiveUserId;
		this.applyUserId = applyUserId;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "receive_user_id")
	public Integer getReceiveUserId() {
		return this.receiveUserId;
	}

	public void setReceiveUserId(Integer receiveUserId) {
		this.receiveUserId = receiveUserId;
	}

	@Column(name = "apply_user_id")
	public Integer getApplyUserId() {
		return this.applyUserId;
	}

	public void setApplyUserId(Integer applyUserId) {
		this.applyUserId = applyUserId;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}